Function isotope::parser::sexpr[][src]

pub fn sexpr(input: &str) -> IResult<&str, Sexpr>
Expand description

Parse an S-expression

Examples

assert_eq!(
    sexpr("(f x y z)").unwrap(),
    ("", Sexpr(smallvec![
        Ident("f".to_owned()).into(),
        Ident("x".to_owned()).into(),
        Ident("y".to_owned()).into(),
        Ident("z".to_owned()).into()
    ]))
);